﻿@model NUS.ISS.ARS.BusinessEntity.ViewModels.FlightScheduleView

@{
    ViewBag.Title = "FlightSchedule Delete";

}

<h2>Delete</h2>


@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Delete Flight Schedule</legend>
         @Html.HiddenFor(model => model.FlightScheduleId)
         @Html.HiddenFor(model => model.isDeleted)

        <table class="table table-striped">
            <tr>
                <th>
                    @Html.DisplayNameFor(model => Model.FlightNumber)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.FromAirport)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.ToAirport)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.DepartureTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.ArrivalTime)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.AdultFare)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.ChildFare)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.InfantFare)
                </th>
                <th>
                    @Html.DisplayNameFor(model => Model.AirplaneModel)
                </th>
            </tr>
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => Model.FlightNumber)
                    @Html.HiddenFor(model => model.FlightNumber)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.FromAirport)
                    @Html.HiddenFor(model => model.FromAirportId)

                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.ToAirport)
                    @Html.HiddenFor(model => model.ToAirportId)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.DepartureTime)
                    @Html.HiddenFor(model => model.DepartureTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.ArrivalTime)
                    @Html.HiddenFor(model => model.ArrivalTime)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.AdultFare)
                    @Html.HiddenFor(model => model.AdultFare)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.ChildFare)
                    @Html.HiddenFor(model => model.ChildFare)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.InfantFare)
                    @Html.HiddenFor(model => model.InfantFare)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => Model.AirplaneModel)
                    @Html.HiddenFor(model => model.AirplaneId)
                </td>
            </tr>
        </table>

        <h3>Are you sure you want to delete this?</h3>
        <p>
            <input type="submit" value="Delete" />
        </p>
    </fieldset>

<div>
    @Html.ActionLink("Back to List", "FlightSchedule")
</div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
